package com.example.librarysystem.Dao;

import com.example.librarysystem.entity.Times;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("timesDao")
public interface TimesDao {
    Times selectByName(String bookName);
    void updateSearchTimes(Times times);
    void updateClickTimes(Times times);
    List<Times> selectAllByClickDesc();
    List<Times> selectAllBySearchDesc();
    void insertTimes(Times times);
    void deleteByName(String name);
}
